
#include "CollisionTile.h"

// Constructor
CollisionTile::CollisionTile(void)
{
}

CollisionTile::CollisionTile(int posX, int posY, int width, int height)
{
	bounds.x1 = posX;
	bounds.y1 = posY;
	bounds.x2 = bounds.x1 + width;
	bounds.y2 = bounds.y1 + height;
}

// Destructor
CollisionTile::~CollisionTile(void)
{
}

void CollisionTile::Update(float deltaTime)
{
}
void CollisionTile::Render(void) const
{
}
void CollisionTile::HandleCollision(CollisionInfo info)
{

}

void CollisionTile::SetPosX(unsigned int x)
{
	bounds.x1 = x;
}

void CollisionTile::SetPosY(unsigned int y)
{
	bounds.y1 = y;
}

void CollisionTile::SetWidth(unsigned int width)
{
	bounds.x2 = bounds.x1 + width;
}

void CollisionTile::SetHeight(unsigned int height)
{
	bounds.y2 = bounds.y1 + height;
}

// SetEventMessage
//	- Sets the message that will be sent in the event when
//	  the collision tile sends the event upon collision.
void CollisionTile::SetEventMessage(const char* message)
{
	this->collisionEvent.message = message;
}

// SetEventMessage
//	- Sets the message that will be sent in the event when
//	  the collision tile sends the event upon collision.
void CollisionTile::SetEventMessage(std::string message)
{
	this->collisionEvent.message = message;
}

// SetEventValue
//	- Sets the value that will be passed along with the event
//	  that the collision tile sends upon collision.
void CollisionTile::SetEventValue(std::string value)
{
	this->collisionEvent.value = value;
}